package com.wzz.seckillone.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.wzz.seckillone.pojo.User;
import com.wzz.seckillone.common.AjaxResult;
import com.wzz.seckillone.vo.LoginVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2021-10-28
 */
public interface UserService extends IService<User> {
    User test(String id);

    AjaxResult doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

    User getUserByTicket(String s);

    void register(User user);

    /**
     * @Method
     * @Author wzz
     * @Version  1.0
     * @Description
     * @param
     * @Return
     * @Exception
     * @Date 2022/3/17 22:47
     */
    User getUserById(String username);

    /**
     * @Method
     * @Author wzz
     * @Version  1.0
     * @Description
     * @param
     * @Return
     * @Exception
     * @Date 2022/3/17 22:47
     */
    void saveOrUpdateUser(User user);
}
